import com.practice2.exercise.User;
import org.junit.Test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {

   @Test
    public void test(){

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("user.xml");
        User user1 = (User) context.getBean("user1");
        user1.show();
        User user2 = (User) context.getBean("user2");
        user2.show();





    }
}
